<!DOCTYPE html>
<html>
<head>
    <title>客户资料</title>
		<#include "/header.html">
</head>
<body>
<div id="rrapp" v-cloak>
    <div v-show="showList">
        <div class="grid-btn">
			<#if shiro.hasPermission("erp:customerinfo:save")>
            <a class="btn btn-primary" @click="add"><i class="fa fa-plus"></i>&nbsp;新增</a>
			</#if>
			<#if shiro.hasPermission("erp:customerinfo:update")>
            <a class="btn btn-primary" @click="update"><i class="fa fa-pencil-square-o"></i>&nbsp;修改</a>
			</#if>
			<#if shiro.hasPermission("erp:customerinfo:delete")>
            <a class="btn btn-primary" @click="del"><i class="fa fa-trash-o"></i>&nbsp;删除</a>
			</#if>
        </div>
        <table id="jqGrid"></table>
        <div id="jqGridPager"></div>
    </div>

    <div v-show="!showList" class="panel panel-default">
        <div class="panel-heading">{{title}}</div>
        <form class="form-horizontal">
														                    <div class="form-group">
                        <div class="col-sm-2 control-label">客户编码</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="customerInfo.customerCode" placeholder="客户编码"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">客户名称</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="customerInfo.customerName" placeholder="客户名称"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">客户简称</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="customerInfo.customerShortName" placeholder="客户简称"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">主管海关</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="customerInfo.mainCustom" placeholder="主管海关"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">客户类别</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="customerInfo.customerType" placeholder="客户类别"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">业务部联系人</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="customerInfo.businessLinkman" placeholder="业务部联系人"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">财务部联系人</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="customerInfo.financeLinkman" placeholder="财务部联系人"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">业务部电话</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="customerInfo.businessPhone" placeholder="业务部电话"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">财务部电话</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="customerInfo.financePhone" placeholder="财务部电话"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">传真号码</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="customerInfo.faxNumber" placeholder="传真号码"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">电子邮件</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="customerInfo.emailAddress" placeholder="电子邮件"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">业务员</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="customerInfo.businessMan" placeholder="业务员"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">付款期</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="customerInfo.paymentPeriod" placeholder="付款期"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">折扣率</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="customerInfo.discountRate" placeholder="折扣率"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">付款方式</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="customerInfo.paymentMethod" placeholder="付款方式"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">默认货币</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="customerInfo.defaultCurrency" placeholder="默认货币"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">税率（%）</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="customerInfo.taxRate" placeholder="税率（%）"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">客户信贷额</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="customerInfo.customerCredit" placeholder="客户信贷额"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">月结期间（1：上月0：本月）</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="customerInfo.monthlyPeriod" placeholder="月结期间（1：上月0：本月）"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">月结开始日期</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="customerInfo.payStart" placeholder="月结开始日期"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">月结结束日期</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="customerInfo.payEnd" placeholder="月结结束日期"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">送货地区</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="customerInfo.deliveryArea" placeholder="送货地区"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">邮政编号</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="customerInfo.postCode" placeholder="邮政编号"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">通信地址</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="customerInfo.mailingAddress" placeholder="通信地址"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">送货地址</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="customerInfo.deliveryAddress" placeholder="送货地址"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">重要说明</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="customerInfo.importantExplain" placeholder="重要说明"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">状态（1：有效0无效）</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="customerInfo.status" placeholder="状态（1：有效0无效）"/>
                        </div>
                    </div>
							            <div class="form-group">
                <div class="col-sm-2 control-label"></div>
                <input type="button" class="btn btn-primary" @click="saveOrUpdate" value="确定"/>
                &nbsp;&nbsp;<input type="button" class="btn btn-warning" @click="reload" value="返回"/>
            </div>
        </form>
    </div>
</div>

<script src="${request.contextPath}/statics/js/modules/erp/customerinfo.js?_${.now?long}"></script>
</body>
</html>